<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition template="/WEB-INF/templates/principal.xhtml">
	<ui:define name="head">
		<!-- <script type="text/javascript" src="#{request.contextPath}/js/jquery.js"></script> -->
		<script type="text/javascript" src="#{request.contextPath}/js/easySlider1.7.js"></script>
		<script type="text/javascript">
			$(document).ready(function(){	
				$("#slider").easySlider({
					auto: true, 
					continuous: true,
					speed: 800,
					pause: 3000
				});
			});	
		</script>
	</ui:define>
	<ui:define name="header">		
		<div id="pesquisa-email-mk">					
			<h:form id="formPesquisa">
				<h:panelGrid columns="7" cellspacing="0">								
					<p:inputText value="" id="chave" size="35" styleClass="input-pesquisa" required="true"/>
					<p:watermark for="chave" value="Buscar ofertas" />
					<p:commandButton value="Buscar" icon="ui-icon-search"/>
					<h:outputLabel value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" />
					<p:inputText value="" id="email" size="15" styleClass="input-pesquisa" required="true"/>
					<p:watermark for="email" value="Receber no e-mail" />
					<p:commandButton value="Cadastrar" icon="ui-icon-mail-closed"/>
				</h:panelGrid>
			</h:form>
		</div>		
	</ui:define>
	<ui:define name="banner">
		<div id="slider">
			<ul>				
			<c:forEach var="cp" items="#{testeManagedBean.slide}">
				<li>
					<div id="oferta-slide" style="float: left;">
						<div id="img-oferta">
							<p:graphicImage url="/img/img.jpg"/>
						</div>
						<div id="detalhes-oferta">
							<div id="desconto-oferta" class="ui-widget ui-widget-header">
								<h2>50%</h2>
							</div>
							<div id="de-oferta">
								<strike>De: R$ 300,00</strike>
							</div>
							<div id="por-oferta">
								Por: <span id="por">R$ 150,00</span>
							</div>
							<div id="economia-oferta">
								Economia: R$ 150,00
							</div>
							<div id="status-oferta">
								Oferta ativa
							</div>
						</div>
						<div id="descricao-oferta">
						 asdfsdfasdfasdfa
						</div>
					</div>
					<div id="oferta-slide" style="float: right;">
						<div id="img-oferta">
							<p:graphicImage url="/img/img.jpg"/>
						</div>
						<div id="detalhes-oferta">
							<div id="desconto-oferta" class="ui-widget ui-widget-header">
								<h2>50%</h2>
							</div>
							<div id="de-oferta">
								<strike>De: R$ 300,00</strike>
							</div>
							<div id="por-oferta">
								Por: <span id="por">R$ 150,00</span>
							</div>
							<div id="economia-oferta">
								Economia: R$ 150,00
							</div>
							<div id="status-oferta">
								Oferta ativa
							</div>
						</div>
						<div id="descricao-oferta">
							asdfsdfasdfasdfa
						</div>
					</div>
				</li>	
			</c:forEach>			
			</ul>
		</div>
	</ui:define>
	<ui:define name="content-container2">
		<div id="section-navigation">						
			<h3>Categorias</h3>
			<p:separator id="separator2"/>
			<h:form id="formCategoria">
				<h:panelGrid columns="1" cellpadding="5">
					<p:selectManyCheckbox layout="pageDirection">  
			            <f:selectItem itemLabel="Bares e Baladas" itemValue="Option 1" />  
			            <f:selectItem itemLabel="Cursos e Aulas" itemValue="Option 2" />  
			            <f:selectItem itemLabel="Entretenimento" itemValue="Option 3" />  
			            <f:selectItem itemLabel="Esportes" itemValue="Option 3" />
			            <f:selectItem itemLabel="Hotéis e Viagens" itemValue="Option 3" />
			            <f:selectItem itemLabel="Produtos" itemValue="Option 3" />
			            <f:selectItem itemLabel="Restaurantes" itemValue="Option 3" />
			        </p:selectManyCheckbox>
			        <p:commandButton value="Filtrar" icon="ui-icon-check"/>
				</h:panelGrid>
			</h:form>
		</div>
		<div id="content">
			<ui:insert name="conteudo"/>
			<h3>Lista de ofertas</h3>
			<p:separator id="separator"/>
			<div id="selects">
			<h:form id="formSelect">
				<h:panelGrid columns="5" cellspacing="5">					
					<h:outputLabel value="Cidade" />
					<p:selectOneMenu value="" styleClass="form-select">  
			            <f:selectItem itemLabel="Rio de Janeiro" itemValue="" />  
			            <f:selectItem itemLabel="São Paulo" itemValue="1" />  
			            <f:selectItem itemLabel="Bahia" itemValue="2" />  
			            <f:selectItem itemLabel="Parati" itemValue="3" />  
			        </p:selectOneMenu>
			        <h:outputLabel value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" />
			        <h:outputLabel value="Ordenar Por" />
					<p:selectOneMenu value="">  
			            <f:selectItem itemLabel="Recentes" itemValue="" />  
			            <f:selectItem itemLabel="Menor desconto" itemValue="1" />  
			            <f:selectItem itemLabel="Maior desconto" itemValue="2" />  
			            <f:selectItem itemLabel="Menor valor" itemValue="3" /> 
			            <f:selectItem itemLabel="Maior valor" itemValue="3" /> 
			        </p:selectOneMenu>					
				</h:panelGrid>
			</h:form>
			</div>
			<p:dataGrid rows="30" columns="2" paginator="true"  var="cp" value="#{testeManagedBean.campo}" rowsPerPageTemplate="10,20,30,40,50,100"
		    paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}">						
				<p:column>								 
					<div id="oferta">
						<div id="img-oferta">
							<p:graphicImage url="/img/img.jpg"/>
						</div>
						<div id="detalhes-oferta">
							<div id="desconto-oferta" class="ui-widget ui-widget-header">
								<h2>50%</h2>
							</div>
							<div id="de-oferta">
								<strike>De: R$ 300,00</strike>
							</div>
							<div id="por-oferta">
								Por: <span id="por">R$ 150,00</span>
							</div>
							<div id="economia-oferta">
								Economia: R$ 150,00
							</div>
							<div id="status-oferta">
								Oferta ativa
							</div>
						</div>
						<div id="descricao-oferta">
						asdfsdfasdfasdfa
						</div>
					</div>
				</p:column>						
			</p:dataGrid>
		</div>
	</ui:define>
</ui:composition>

</html>